package br.com.bancodecurriculos.pessoa.comum.dao;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import br.com.bancodecurriculos.pessoa.comum.dominio.Email;
import br.com.bancodecurriculos.pessoa.comum.dominio.Email.TipoEmail;
import br.com.bancodecurriculos.util.dao.IGenericDAO;
import br.com.bancodecurriculos.util.exception.RegistroExistenteException;

public interface IEmailDAOHelper extends IGenericDAO<Long, Email> {

	public void save(Email email, long idPessoa) throws ClassNotFoundException,
			SQLException, IOException, RegistroExistenteException;

	public List<Email> getByIdPessoa(long id) throws SQLException,
			ClassNotFoundException, IOException;

	public TipoEmail getTipoEmailByNome(String nome)
			throws ClassNotFoundException, SQLException, IOException;

	public List<TipoEmail> getAllTipoEmail() throws ClassNotFoundException,
			SQLException, IOException;

}
